openAsset

open override fun openAsset(fileName: String, initializeplayerState: InitialPlayerState = InitialPlayerState.PLAY)

Opens a media file bundled with the application.

On Android, plays directly from the APK's assets/ directory via the asset:/// URI scheme (zero-copy). On iOS, resolves the file from the app bundle via NSBundle.mainBundle.

Parameters

fileName

the file name or relative path (e.g. "video.mp4" or "videos/intro.mp4")

Throws

on platforms where asset loading is not yet supported